<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>英正网络[www.xuehen.org]后台登陆</title>
<meta name="robots" content="nofollow" />
<meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1″>
<link href="/Public/Css/admin-style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="/Public/JS/jquery.js"></script>
<script language="javascript" type="text/javascript" src="/Public/JS/admin-common.js"></script>
</head>

<body>



<form name="form1" method="post" action="<?php echo U('editok');?>">

<div class="nav-table">
<span class="on" href="table-one">编辑导航</span>
</div>
<div class="nav-bottom"></div>


<div class="input-box">
<ul id="table-one">
<li>
<label for="name">导航名称</label>
<input name="name" type="text" id="name" size="50" value="<?php echo ($content['name']); ?>" />
<input type="hidden" value="<?php echo ($content['id']); ?>" name="id">
</li>
<li>
<label for="pid">上级导航</label>
  <select name="pid" id="pid">
   <?php if($content['pid'] != 0): ?><option value="<?php echo ($content['pid']); ?>"><?php echo GetNavName($content['pid']);?></option><?php endif; ?>
   <option value="0">顶级栏目</option>
   <?php if(is_array($nav)): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$list): $mod = ($i % 2 );++$i;?><option value="<?php echo ($list['id']); ?>"><?php echo ($list['name']); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
  </select>
</li>
<li>
<label for="target">打开方式</label>
  <select name="target" id="target">
   <option value="<?php echo ($content['target']); ?>"><?php echo ($content['target'] == '_self' ? '当前窗口' : '新窗口'); ?></option>
   <option value="_self">当前窗口</option>
   <option value="_balnk">新窗口</option>
  </select>
</li>
<li>
<label for="target">显示状态</label>
  <select name="status" id="status">
    <option value="<?php echo ($content['status']); ?>"><?php echo ($content['status'] ? '显示' : '隐藏'); ?></option>
    <option value="1">显示</option>
    <option value="0">隐藏</option>
  </select>
</li>
<li>
<label for="ord">展示序号</label>
<input name="ord" type="text" id="ord" value="0" value="<?php echo ($content['ord']); ?>"/>
</li>
<li>
<label for="url">链接地址</label>
<input name="url" type="text" id="url" size="50" value="<?php echo ($content['url']); ?>" />
</li>
</ul>
 
<div class="table-but"><input type="submit" name="button" id="button" value="确 认 修 改"></div>
</div>
</form>

</body>
</html>